package com.swotxu.mall.ssoclient.conf;

import lombok.Getter;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;

/**
 * @Date: 2021/3/27 22:16
 * @Author: swotXu
 */
@Getter
@Configuration
public class SSOConfig {

    @Value("${sso.server.hostAndPort}")
    private String hostAndPort;
    @Value("${sso.server.uri.login}")
    private String uriLogin;
    @Value("${sso.server.uri.userInfo}")
    private String uriUserinfo;
    @Value("${sso.server.uri.logout}")
    private String uriLogout;
    @Value("${sso.server.redirect-url}")
    private String redirectUrl;

    public String getFullUrl(String uri) {
        return hostAndPort + uri;
    }
}
